<html>
<head>
	<?php $this->load->view('config/head');?>
</head>
<body>
	<?php $this->load->view('config/awal_body');?>
	
	<h3><?php echo $mode?> user</h3>
	<a href="<?php echo site_url()?>mg_user/index" class="btn">List user</a>
	<br/>
	<br/>
	
	<form method="post" action="<?php echo site_url() ?>mg_user/<?php echo $action?>" class="form-horizontal">
		<input type="hidden" name="id_user" value="<?php echo @$detail[0]['id_user']?>" />
		
		<div class="control-group">
			<label class="control-label" for="nama_user">Username</label>
			<div class="controls">
				<input type="text" name="nama_user" value="<?php echo @$detail[0]['nama_user']?>" ></input>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="email_user">Email</label>
			<div class="controls">
				<input type="text" name="email_user" value="<?php echo @$detail[0]['email_user']?>" ></input>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="chat_user">Live Chat</label>
			<div class="controls">
				<input type="text" name="chat_user" value="<?php echo @$detail[0]['chat_user']?>" ></input>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="pass_user">Password</label>
			<div class="controls">
				<input type="password" name="pass_user" value="<?php echo @$detail[0]['pass_user']?>" ></input>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="enable_user">Enable Account</label>
			<div class="controls">
				<?php 
					if(@$detail[0]['enable_user'] == 1){
						$check = "checked";
					}else{
						$check = "";
					}
				?>
				<input type="checkbox" name="enable_user" value="1" <?php echo $check; ?> ></input>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="button">&nbsp;</label>
			<div class="controls">
				<input type="submit" name="submit" value="Save" class="btn btn-primary" />
				<input type="reset" value="Reset" class="btn" />
			</div>
		</div>
	</form>
	
	<?php $this->load->view('config/akhir_body');?>
</body>
</html>

